<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小综合 </title>
    <script src="../js/vue2.js"></script>
</head>

<body>
    <div id="app">
        <input @click="diange(value.music)" type="button" v-for="(value,index) in song" :value="value.music" ><br>
        <span>{{Count}}</span>
    </div>
</body>
<script>
    // 创建Vue对象
    var ms = new Vue({
        // 定义 模块
        el: "#app",
        data:{
            song:[
                { music: "龙转风" },
                { music: "不能说的密码" },
                { music: "简单爱" },
                { music: "倒带" },
                { music: "双节棍" },
                { music: "霍元甲" },
                { music: "搁浅" },
                { music: "晴天" },
                { music: "七里香" },
                { music: "说好的幸福" }
            ],
            Count:"123"
        },
        methods:{
            diange(val){
                this.Count=val;
            }
        }
    })
</script>

</html>